﻿
		using UnityEngine;
		using System.Collections;
		using System.Collections.Generic;
		namespace Soomla.Store.Example {
	/// <summary>
	/// This class defines our game's economy, which includes virtual goods, virtual currencies
	/// and currency packs, virtual categories
	/// </summary>
	public class boutique : IStoreAssets{
		/// <summary>
		/// see parent.
		/// </summary>
		public int GetVersion() {
			return 0;
		}
		/// <summary>
		/// see parent.
		/// </summary>
		public VirtualCurrency[] GetCurrencies() {
			return new VirtualCurrency[]{COIN_CURRENCY};
		}
		/// <summary>
		/// see parent.
		/// </summary>
		public VirtualGood[] GetGoods() {
			return new VirtualGood[] {NO_ADS_LTVG};
		}
		/// <summary>
		/// see parent.
		/// </summary>
		public VirtualCurrencyPack[] GetCurrencyPacks() {
			return new VirtualCurrencyPack[] {TENCOIN_PACK, FIFTYCOIN_PACK, FOURHUNDCOIN_PACK, THOUSANDCOIN_PACK};
		}
		/// <summary>
		/// see parent.
		/// </summary>
		public VirtualCategory[] GetCategories() {
			return new VirtualCategory[]{GENERAL_CATEGORY};
		}
		/** Static Final Members **/
		public const string COIN_CURRENCY_ITEM_ID = "currency_coins";
		public const string TENCOIN_PACK_PRODUCT_ID = "android.test.refunded";
		public const string FIFTYCOIN_PACK_PRODUCT_ID = "fiftycoin_pack";
		public const string FOURHUNDCOIN_PACK_PRODUCT_ID = "android.test.purchased";
		public const string THOUSANDCOIN_PACK_PRODUCT_ID = "2500_pack";
		public const string NO_ADS_LIFETIME_PRODUCT_ID = "no_ads";
		/** Virtual Currencies **/
		public static VirtualCurrency COIN_CURRENCY = new VirtualCurrency(
			"Coins", // name
			"", // description
			COIN_CURRENCY_ITEM_ID // item id
			);
		/** Virtual Currency Packs **/
		public static VirtualCurrencyPack TENCOIN_PACK = new VirtualCurrencyPack(
			"10 Coins", // name
			"Earn 10 coins", // description
			"J1o99l3a25n1010", // item id
			10, // number of currencies in the pack
			COIN_CURRENCY_ITEM_ID, // the currency associated with this pack
			new PurchaseWithMarket(TENCOIN_PACK_PRODUCT_ID, 0.99)
			);
		public static VirtualCurrencyPack FIFTYCOIN_PACK = new VirtualCurrencyPack(
			"50 Coins", // name
			"Earn 50 coins", // description
			"J1o99l3a25n1050", // item id
			50, // number of currencies in the pack
			COIN_CURRENCY_ITEM_ID, // the currency associated with this pack
			new PurchaseWithMarket(FIFTYCOIN_PACK_PRODUCT_ID, 1.99)
			);
		public static VirtualCurrencyPack FOURHUNDCOIN_PACK = new VirtualCurrencyPack(
			"400 Coins", // name
			"Earn 400 coins", // description
			"J1o99l3a25n10400", // item id
			400, // number of currencies in the pack
			COIN_CURRENCY_ITEM_ID, // the currency associated with this pack
			new PurchaseWithMarket(FOURHUNDCOIN_PACK_PRODUCT_ID, 4.99)
			);
		public static VirtualCurrencyPack THOUSANDCOIN_PACK = new VirtualCurrencyPack(
			"1000 Coins", // name
			"Earn 100O coins", // description
			"J1o99l3a25n101000", // item id
			1000, // number of currencies in the pack
			COIN_CURRENCY_ITEM_ID, // the currency associated with this pack
			new PurchaseWithMarket(THOUSANDCOIN_PACK_PRODUCT_ID, 8.99)
			);
		/** LifeTimeVGs **/
		// Note: create non-consumable items using LifeTimeVG with PuchaseType of PurchaseWithMarket
		public static VirtualGood NO_ADS_LTVG = new LifetimeVG(
			"No Ads", // name
			"No More Ads!", // description
			"no_ads", // item id
			new PurchaseWithMarket(NO_ADS_LIFETIME_PRODUCT_ID, 0.99)); // the way this virtual good is purchased
		
		/** Virtual Categories **/
		// The muffin rush theme doesn't support categories, so we just put everything under a general category.
		public static VirtualCategory GENERAL_CATEGORY = new VirtualCategory(
			"General", new List<string>(new string[] {  })
			);
	}
}
